package com.smart.manager.pop.entities.assembler;

import com.smart.manager.pop.entities.views.InviterView;
import com.smart.manager.system.entities.enums.Sex;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

@Data
@Accessors(chain = true)
public class AgentRequest {

    /**
     * 排行榜
     * @author leo
     * @date 2023/08/14
     */
    @Data
    @Accessors(chain = true)
    public static class leaderboard{
        @ApiModelProperty("排行榜")
        private List<InviterView> ranking;
        @ApiModelProperty("我的信息")
        private InviterView rankingOne;
        @ApiModelProperty("我的排行")
        private String myPosition;
    }

    /**
     * 我的团队
     * @author leo
     * @date 2023/08/14
     */
    @Data
    @Accessors(chain = true)
    public static class myTeam{
        @ApiModelProperty("排行榜")
        private List<InviterView> team;
        @ApiModelProperty("团队人数")
        private Integer teamSize;
        @ApiModelProperty("总收益")
        private BigDecimal amountCont;
    }
    /**
     * 我的用户团队
     * @author leo
     * @date 2023/08/14
     */
    @Data
    @Accessors(chain = true)
    public static class myUserTeam{
        @ApiModelProperty("排行榜")
        private List<AgentRequest.myUser> team;
        @ApiModelProperty("团队人数")
        private Integer teamSize;
        @ApiModelProperty("总收益")
        private BigDecimal amountCont;
    }


    @Data
    @Accessors(chain = true)
    public static class myUser{


        @ApiModelProperty("会员编号")
        private Long id;

        @ApiModelProperty("会员昵称")
        private String nickName;

        @ApiModelProperty("手机号码")
        private String phoneNumber;

        @ApiModelProperty("性别")
        private Sex sex;

        @ApiModelProperty("头像地址")
        private String avatar;

        @ApiModelProperty("邀请人Id")
        private Long inviterId;

        @ApiModelProperty("消费金币")
        private Integer theAmountSpent;


    }

}
